﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Xant.FlowEngine.Core
{
    public sealed class EndActivity : AbstractActivity
    {

        #region 构造函数
        public EndActivity() : base("END", "结束")
        {
        }

        #endregion

        #region 实现抽象方法
        protected override AbstractActivity Clone()
        {
            var clone = new EndActivity();
            //to do:将本类声明的字段、属性作克隆处理，父类声明的由父类处理
            return clone;
        }

        #endregion

        #region 公有方法
        public override void Entry()
        {
            base.Entry();
            Console.WriteLine("流程结束");
        }
        #endregion

    }

}
